package com.yaosheng.thread.thread;

import java.util.concurrent.TimeUnit;

/**
 * Created by yaosheng on 2021/7/2.
 */
public class Test100 {

    public static void main(String[] args) {

        new Thread ( () -> {
            for(int i = 0;i < 100;i ++){
                System.out.println ("Hello,world!");
                try{
                    TimeUnit.SECONDS.sleep (2 );
                } catch (InterruptedException e) {
                    e.printStackTrace ();
                }
            }
        }).start ();
    }
}
